<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>02_径向渐变</title>
    <style>
        div {
            width: 150px;
            height: 200px;
            font-size: 20px;
            border-width: 2px; 
            border-style: soild;
            border-color: black;
            float: left;
            margin: 10px;

        }
        .box1 {
            background-image: radial-gradient(red,yellow,green);
        }
        .box2 {
            background-image: radial-gradient(at left top,red,yellow,green);
        }
        .box3 {
            background-image: radial-gradient(at 100px 100px,red,yellow,green);
        }
        .box4 {
            background-image: radial-gradient(circle,red,yellow,green)
        }
    </style>
</head>
<body>
    <div class="box1">1</div>
    <div class="box2">2</div>
    <div class="box3">3</div>
    <div class="box4">4</div>
    <div class="box5">5</div>
    <div class="box6">6</div>
</body>
</html>